import sympy as sym
import numpy as np
import scipy
from sympy import sin,cos,Function
sym.init_printing()
#document:https://github.com/sympy/sympy


def ctranspose(arg_a, flag = True):
    if flag:
        return sym.simplify(np.matrix(arg_a).H)
    else :
        return np.matrix(arg_a).H
    
x = sym.symbols('x')
y = sym.symbols('y')
i = sym.I
A = [[2,3],[1, 2]]
B = [[1, 2+3j],[3, 4+5j]]
C = [[x + y*1j,x - y*1j],[y + x*1j,y - x*1j]]
D = [[x + y*i,x - y*i],[y + x*i,y - x*i]]

res = ctranspose(C)
res1 = ctranspose(A)
res2 = ctranspose(B)
res3 = ctranspose(D)
print(res)
print(res1)
print(res2)
print(res3)



